package com.rp.system.dao;

import java.util.List;

import org.raptor.common.DbOperUtil;
import org.raptor.orm.hibernate.DbaHibernateTemplateSupport;
import org.springframework.stereotype.Repository;

import com.rp.system.po.Organ;

@Repository
public class OrganDao extends DbaHibernateTemplateSupport<Organ> {

	
	public List<Organ> getOrgans(String name){
		String hql = "from Organ where name like ?";
		return this.find(hql, DbOperUtil.fuzzyQueryParam(name));
	}
	
}
